import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { MenusService } from './menus.service'
import { MenusController } from './menus.controller'
import { Menu, MenuSchema } from './schemas/menu.schema'
import { Role, RoleSchema } from 'src/roles/schemas/role.schema'

@Module({
  imports: [
    MongooseModule.forFeature([{ name: Menu.name, schema: MenuSchema }]),
    MongooseModule.forFeature([{ name: Role.name, schema: RoleSchema }])
  ],
  providers: [MenusService],
  controllers: [MenusController]
})
export class MenusModule {}
